package com.bulk.demo.loop;

/**
 * 循环测试
 *
 * @author 散装java
 * @date 2022-11-14
 */
public class ForTest {
    public static void main(String[] args) {
        l1:
        for (int i = 0; i < 3; i++) {
            System.out.print("i" + i);
            l2:
            for (int j = 0; j < 3; j++) {
                System.out.print("j" + j);
                l3:
                for (int k = 0; k < 3; k++) {
                    if (k == 2) {
                        break l1;
                    }
                    System.out.print("k" + k);
                }
            }
        }
        System.out.println("退出");
    }
}
